package com.dominator.enums;


import com.dominator.utils.api.ApiMessage;

public enum SocketEnums {

    REQ_SUCCESS("200", "请求成功"),
    SYS_ERROR("400", "系统异常"),
    SYS_ROUTER_ILLEGAL("400", "请求路由规则参数缺失或路由规则不合法，请检查!"),

    NOTIFICATION_SCAN_CODE ("201","扫描条码"),
    NOTIFICATION_MAIN_CAMERA_SHOOTING ("202","通知主摄像头拍照"),
    NOTIFICATION_SUB_CAMERA_SHOOTING("203","通知副摄像头拍照")

    ;



    /**
     * code
     */
    private String code;
    /**
     * msg
     */
    private String msg;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private SocketEnums(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return new ApiMessage(this.code,this.msg).toString();
    }
}
